interface DashboardPanel {
  title: string;
  value: string | number;
}
import { divide } from 'lodash';
import { TabItemList } from './types';
export const ProjectData: TabItemList = {
  tabList: [
    {
      title: '图片资源',
      num: 4,
      value: 0,
    },
    {
      title: '相关文章',
      num: 0,
      value: 1,
    },
    {
      title: '音频资源',
      num: 0,
      value: 2,
    },
    {
      title: '视频资源',
      num: 0,
      value: 3,
    },
    {
      title: '3D资源',
      num: 0,
      value: 4,
    },
    {
      title: '纹理资源',
      num: 0,
      value: 5,
    },
  ],
};
export const tabList: Array<DashboardPanel> = [
  {
    title: '公有库',
    value: 1,
  },
  {
    title: '私有库',
    value: 2,
  },
  {
    title: '回收站',
    value: 3,
  },
  {
    title: '展品评论',
    value: 4,
  },
];
export const tabList1: Array<DashboardPanel> = [
  {
    title: '展品信息',
    value: 1,
  },
  // {
  //   title: '展品资源',
  //   value: 2,
  // },
];
export const tabList2: Array<DashboardPanel> = [
  {
    title: '展品信息',
    value: 1,
  },
  // {
  //   title: '展品资源',
  //   value: 2,
  // },
  {
    title: '展品互动',
    value: 3,
  },
];
export const column = [
  {
    colKey: 'row-select',
    type: 'multiple',
    width: 50,
    // checkProps: ({ row, rowIndex }) => ({ disabled: row.isDisable }),
    // checkProps: ({ rowIndex }) => ({ disabled: rowIndex % 2 !== 0 }),
    // disabled: ({ row }) => {
    //   console.log(row);
    //   return row.isDisable == true;
    // },
  },
  { colKey: 'coverUrl', title: '图片', width: 100, ellipsis: true },
  { colKey: 'name', title: '展品名称', width: 180, ellipsis: true },
  { colKey: 'typeId', title: '类型', width: 150, ellipsis: true },
  { colKey: 'ageId', title: '年代', width: 240, ellipsis: true },
  { colKey: 'concreteTimes', title: '具体年代', width: 120, ellipsis: true },
  { colKey: 'size', title: '尺寸', width: 100, ellipsis: true },
  { colKey: 'levelId', title: '级别', width: 150, ellipsis: true },
  {
    colKey: 'publishStatus',
    title: '状态',
    width: 150,
    ellipsis: true,
  },
  {
    colKey: 'operation',
    title: '操作',
    width: 80,
    fixed: 'right',
    cell: 'operation',
    ellipsis: true,
  },
];
export const columnSolt = [
  {
    colKey: 'row-select',
    type: 'multiple',
    width: 50,
    // checkProps: ({ row, rowIndex }) => ({ disabled: row.isDisable }),
    // checkProps: ({ rowIndex }) => ({ disabled: rowIndex % 2 !== 0 }),
    // disabled: ({ row }) => {
    //   console.log(row);
    //   return row.isDisable == true;
    // },
  },
  // { colKey: 'sort', title: '序号', width: 120 },
  { colKey: 'drag', title: '排序', width: 100 },
  { colKey: 'coverUrl', title: '图片', width: 100, ellipsis: true },
  { colKey: 'name', title: '展品名称', width: 180, ellipsis: true },
  { colKey: 'typeId', title: '类型', width: 100, ellipsis: true },
  { colKey: 'ageId', title: '年代', width: 240, ellipsis: true },
  { colKey: 'concreteTimes', title: '具体年代', width: 120, ellipsis: true },
  { colKey: 'size', title: '尺寸', width: 100, ellipsis: true },
  { colKey: 'levelId', title: '级别', width: 150, ellipsis: true },
  {
    colKey: 'publishStatus',
    title: '状态',
    width: 150,
    ellipsis: true,
  },
  {
    colKey: 'operation',
    title: '操作',
    width: 80,
    fixed: 'right',
    // cell: 'operation',
    ellipsis: true,
  },
];
export const column2 = [
  { colKey: 'coverUrl', title: '图片', width: 100, ellipsis: true },
  { colKey: 'name', title: '展品名称', width: 100, ellipsis: true },
  { colKey: 'typeId', title: '类型', width: 150, ellipsis: true },
  { colKey: 'ageId', title: '年代', width: 240, ellipsis: true },
  { colKey: 'concreteTimes', title: '具体年代', width: 120, ellipsis: true },
  { colKey: 'size', title: '尺寸', width: 200, ellipsis: true },
  { colKey: 'levelId', title: '级别', width: 150, ellipsis: true },

  {
    colKey: 'operation',
    title: '操作',
    width: 150,
    fixed: 'right',
    cell: 'operation',
    ellipsis: true,
  },
];
export const delColumn = [
  // {
  //   colKey: 'row-select',
  //   type: 'multiple',
  //   // checkProps: ({ row, rowIndex }) => ({ disabled: row.isDisable }),

  //   // disabled: ({ row }) => {
  //   //   console.log(row);
  //   //   return row.isDisable == true;
  //   // },
  // },
  { colKey: 'coverUrl', title: '图片', width: 100, ellipsis: true },
  { colKey: 'name', title: '展品名称', width: 100, ellipsis: true },
  { colKey: 'typeId', title: '类型', width: 120, ellipsis: true },
  { colKey: 'ageId', title: '年代', width: 240, ellipsis: true },
  { colKey: 'SpecificAge', title: '具体年代', width: 120, ellipsis: true },
  { colKey: 'size', title: '尺寸', width: 200, ellipsis: true },
  { colKey: 'levelId', title: '级别', width: 150, ellipsis: true },
  // {
  //   colKey: 'publishStatus',
  //   title: '状态',
  //   width: 150,
  //   ellipsis: true,
  // },
  {
    colKey: 'operation',
    title: '操作',
    width: 80,
    fixed: 'right',
    cell: 'operation',
    ellipsis: true,
  },
];
export const delColumn1 = [
  {
    colKey: 'row-select',
    type: 'multiple',
    width: 50,
    checkProps: ({ row, rowIndex }) => ({ disabled: row.isDisable }),
  },
  {
    colKey: 'isDisable',
    title: '',
    width: 1,
  },
  { colKey: 'coverUrl', title: '图片', width: 100, ellipsis: true },
  { colKey: 'name', title: '展品名称', width: 100, ellipsis: true },
  { colKey: 'typeId', title: '类型', width: 80, ellipsis: true },
  { colKey: 'ageId', title: '年代', width: 240, ellipsis: true },
  { colKey: 'SpecificAge', title: '具体年代', width: 120, ellipsis: true },
  { colKey: 'size', title: '尺寸', width: 200, ellipsis: true },
  { colKey: 'levelId', title: '级别', width: 150, ellipsis: true },
  {
    colKey: 'publishStatus',
    title: '来源',
    width: 150,
    ellipsis: true,
  },
];
export const tabdatas = [];
export const columns1 = [
  { colKey: 'data', title: '缩略图', width: 180 },
  { colKey: 'type', title: '图片标签', width: 200 },
  { colKey: 'size', title: '大小', width: 120 },
  { colKey: 'status', title: '状态', width: 120 },
  {
    colKey: 'operation',
    title: '操作',
    width: 120,
    align: 'left',
    fixed: 'right',
  },
];
export const pagescolumnsList = [
  [
    { colKey: 'detail.email', title: '缩略图', width: 180 },
    { colKey: 'matters', title: '图片名称', width: 200 },
    { colKey: 'createTime', title: '分辨率', width: 120 },
    { colKey: 'createTime', title: '大小', width: 120 },
    { colKey: 'createTime', title: '上传时间', width: 120 },
    { colKey: 'createTime', title: '上传人', width: 120 },
    { colKey: 'operation', title: '操作', width: 100, fixed: 'right' },
  ],
  [
    { colKey: 'detail.email', title: '文章标题', width: 180 },
    { colKey: 'matters', title: '类型', width: 200 },
    { colKey: 'createTime', title: '坐着摘要', width: 120 },
    { colKey: 'createTime', title: '上传时间', width: 120 },
    { colKey: 'createTime', title: '上传人', width: 120 },
    { colKey: 'operation', title: '操作', width: 100, fixed: 'right' },
  ],
  [
    { colKey: 'detail.email', title: '缩略图', width: 180 },
    { colKey: 'matters', title: '图片标签', width: 200 },
    { colKey: 'createTime', title: '大小', width: 120 },
    { colKey: 'createTime', title: '状态', width: 120 },
    { colKey: 'operation', title: '操作', width: 100, fixed: 'right' },
  ],
  [
    { colKey: 'detail.email', title: '缩略图', width: 180 },
    { colKey: 'matters', title: '时长', width: 200 },
    { colKey: 'createTime', title: '大小', width: 120 },
    { colKey: 'createTime', title: '状态', width: 120 },
    { colKey: 'operation', title: '操作', width: 130, fixed: 'right' },
  ],
  [
    { colKey: 'detail.email', title: '缩略图', width: 180 },
    { colKey: 'matters', title: '图片标签', width: 200 },
    { colKey: 'createTime', title: '大小', width: 120 },
    { colKey: 'createTime', title: '状态', width: 120 },
    { colKey: 'operation', title: '操作', width: 100, fixed: 'right' },
  ],
  [
    { colKey: 'detail.email', title: '纹理', width: 180 },
    { colKey: 'matters', title: '纹理名称', width: 200 },
    { colKey: 'createTime', title: '分辨率', width: 120 },
    { colKey: 'createTime', title: '大小', width: 120 },
    { colKey: 'createTime', title: '上传时间', width: 120 },
    { colKey: 'createTime', title: '上传人', width: 120 },
    { colKey: 'operation', title: '操作', width: 100, fixed: 'right' },
  ],
];
export const buttonText = [
  { title: '上传图片资源', text: '高清图片资源，建议上传5M以上图片' },
  { title: '上传相关文章', text: '添加此展品相关文章文献' },
  { title: '上传音频资源', text: '支持mp3、wma、wav、amr，文件大小不超过10M,语音时长不超过10分钟' },
  { title: '上传视频资源', text: '添加此展品相关视频' },
  { title: '上传3D资源', text: '高清资源，建议上传5M以上资源' },
  { title: '上传纹理资源', text: '高清图片资源，建议上传5M以上图片' },
];
export const listdata = [
  {
    applicant: '1',
    name: '1',
    type: '1',
    years: '1',
    SpecificAge: '1',
    size: '1',
    level: '1',
    status: '1',
    operation: '1',
  },
];
export const tableType = {
  type1: [
    { name: '全部', id: 1 },
    { name: '金银器', id: 2 },
    { name: '书画', id: 3 },
    { name: '漆器', id: 4 },
    { name: '铜器', id: 5 },
    { name: '陶器', id: 6 },
  ],
  type2: [
    { name: '全部', id: 1 },
    { name: '夏', id: 2 },
    { name: '商', id: 3 },
    { name: '西周', id: 4 },
    { name: '春秋', id: 5 },
    { name: '战国', id: 6 },
    { name: '秦', id: 7 },
    { name: '西汉', id: 8 },
    { name: '新朝', id: 9 },
    { name: '东汉', id: 10 },
    { name: '三国', id: 11 },
    { name: '西晋', id: 12 },
    { name: '东晋', id: 11 },
    { name: '十六国', id: 12 },
    { name: '南北朝', id: 11 },
    { name: '隋', id: 12 },
    { name: '唐', id: 11 },
    { name: '五代十国', id: 12 },
    { name: '北宋', id: 11 },
    { name: '南宋', id: 12 },
    { name: '辽', id: 11 },
    { name: '大理', id: 12 },
    { name: '西夏', id: 11 },
    { name: '金', id: 12 },
    { name: '元', id: 11 },
    { name: '明', id: 12 },
    { name: '清', id: 11 },
    { name: '近代', id: 12 },
  ],
  type3: [
    { name: '全部', id: 1 },
    { name: '一级', id: 2 },
    { name: '二级', id: 3 },
    { name: '三级', id: 4 },
    { name: '未定级', id: 5 },
  ],
};
